<!doctype html>
<html style="background-color: #f5f6f8;">
<head>
<meta charset="UTF-8">
<title>纳税人身份信息采集系统</title>
<link href="images/favicon.ico" type="image/x-icon" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="__CSS__/style1.css" media="all">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/viewer/viewer.css" media="all">
<script type="text/javascript" src="__STATIC__/jquery-1.10.2.min.js"></script>
<!--[if lt IE 9]>
    <script type="text/javascript" src="__STATIC__/jquery-1.10.2.min.js"></script>
    <![endif]--><!--[if gte IE 9]><!-->
	<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery.mousewheel.js"></script>
	<script type="text/javascript" src="__ROOT__/webcam.js"></script>
	<script src="__PUBLIC__/Admin/viewer/viewer.js"></script>
	<script src="__PUBLIC__/Admin/viewer/main.js"></script>
    <!--<![endif]-->
<style>
.mc{
	text-indent:1em;
	width:30%;
}
.left{
	width:70%;
	float:left;
} 
.right{
	width:20%;
	float:right;
}
a{
	text-decoration:none
}
table{
	border-radius:10px;
	border-color:#e8e9e9;
	width:94%;
	margin-top:20px;

}
th{
	text-indent:1em;
	color:#42464b;
	font-size:16px;
	text-align:left;
	height:45px;
	line-height:45px;
}
tr {
	color:#42464b;
}
tr td{
	border-bottom:3px solid #e5e7e6;
}

.font{
	font-size:20px;
	color:#55595c;
}
.docs-pictures{
	float:left;
}
</style>

</head>
<body>
<!-- 头部 -->
<include file="Public/header"/>

<!-- /头部 -->
<!-- 内容区 -->



	<table align="center" border="1" cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th>肥料登记材料名称</th>
				<th>肥料登记材料文件</th>
			</tr>
		</thead>
		<tbody>
		<tr>
			<td class="mc">肥料登记申请书</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k"  id="fujian">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian','fujian1')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian','fujian2')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian','fujian3')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
		<tr>
			<td class="mc">企业法人营业执照复印件（加盖企业公章）</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian1_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian1">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian1_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian1','fujian11')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian1_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian1','fujian12')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian1_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian1','fujian13')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian1')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
		<tr>
			<td class="mc">产品包装标识正、反面（加盖企业公章）</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian2_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian2">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian2_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian2','fujian21')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian2_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian2','fujian22')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian2_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian2','fujian23')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian2')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
                <tr>
			<td class="mc">生产许可证（包括附件）复印件或受理通知书</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian3_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian3">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian3_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian3','fujian31')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian3_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian3','fujian32')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian3_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian3','fujian33')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian3')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
                <tr>
			<td class="mc">商标注册证明复印件</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian4_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian4">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian4_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian4','fujian41')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian4_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian4','fujian42')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian4_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian4','fujian43')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian4')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
                <tr>
			<td class="mc">经办人身份证复印件</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian5_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian5">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian5_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian5','fujian51')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian5_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian5','fujian52')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian5_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian5','fujian53')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian5')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
	        <tr>
			<td class="mc">产品全项检验报告原件</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian6_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian6">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian6_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian6','fujian61')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian6_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian6','fujian62')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian6_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian6','fujian63')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian6')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
                <tr>
			<td class="mc">肥料登记证</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian7_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian7">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian7_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian7','fujian71')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian7_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian7','fujian72')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian7_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian7','fujian73')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian7')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
		<tr>
			<td class="mc">企业考核表</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian8_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian8">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian8_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian8','fujian81')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian8_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian8','fujian82')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian8_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian8','fujian83')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian8')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>
                <tr>
			<td class="mc">肥料登记证</td>
			<td>
				<div class="left">
					<!--上传的样式-->
					<div id="fujian9_jia" style="position:fixed;top:270px;left:50%;color:red;display:none;">正在上传。。。</div>
					<div class="toux-k" id="fujian9">
						<if condition="$info['cjxx1'] neq ''"><div class=" docs-pictures clearfix" id="fujian9_div1" style="position:relative"><div onclick="delpic('{$info.cjxx1}','fujian9','fujian91')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx1']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx1}" /></p></div></if>
						<if condition="$info['cjxx2'] neq ''"><div class=" docs-pictures clearfix" id="fujian9_div2" style="position:relative"><div onclick="delpic('{$info.cjxx2}','fujian9','fujian92')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx2']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx2}" /></p></div></if>
						<if condition="$info['cjxx3'] neq ''"><div class=" docs-pictures clearfix" id="fujian9_div3" style="position:relative"><div onclick="delpic('{$info.cjxx3}','fujian9','fujian93')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img width="170" data-original-url="./Uploads/Picture/{$info.xydm}/{$info['cjxx3']}" src="./Uploads/Picture/{$info.xydm}/{$info.cjxx3}" /></p></div></if>
					</div>
				</div>
				<div class="right">
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','70px');shuchu(380,240,1280,905,'fujian9')" class="font"><img src="__IMG__/shangchuan.png" style="vertical-align:text-bottom;"></a></p>
					<p><a href="javascript:$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('{$info.txxx}','touxiang','txxx')" class="font"><img src="__IMG__/xiugai.png" style="vertical-align:text-bottom;"/></a></p>
				</div>

			</td>
		</tr>

		</tbody>
	</table>


	<div id="cam1" style="position:fixed;background-color:white;border:2px solid #cdcdcd;top:70px;left:60px;display:none;">
		<input type="hidden" name="iteam_id" value="" id="iteam_id">
		<script language="JavaScript">
webcam.set_api_url("{:U('upimg',array('xydm'=>$info['xydm']))}");
webcam.set_quality( 100 ); // JPEG quality (1 - 100)
webcam.set_shutter_sound( true ); // play shutter click sound
function shuchu(a,b,c,d,id){
	$("#shuchu").html(webcam.get_html(a,b,c, d));
	$("#paizhao").attr("onclick","take_snapshot('"+id+"')");
	$("#iteam_id").val(id);
	if(id == "touxiang"){
		webcam.set_hook( 'onComplete', 'my_completion_handler1' );
		webcam.set_hook( 'onLoad', 'onWebcamReady1' );
		if($("#txxx").val() == ""){
			$("#paizhao").removeAttr("disabled");
		}
	}else{
		webcam.set_hook( 'onComplete', 'my_completion_handler2' );
		webcam.set_hook( 'onLoad', 'onWebcamReady2' );
		if($("#cjxx1").val() == "" || $("#cjxx2").val() == "" || $("#cjxx3").val() == ""){
			$("#paizhao").removeAttr("disabled");
		}
	}
}
		</script>
		<div id="shuchu"></div>
		<p style="text-align:center">
		<if condition="$info['cjxx1'] neq '' and $info['cjxx2'] neq '' and $info['cjxx3'] neq ''">
		<input type=button id="paizhao" value="拍照" class="btn"  onclick="">
		<else />
		<input type=button id="paizhao" value="拍照" class="btn" onclick="">
		</if>
		<select id="cameraNames" size="1" onChange="changeCamera()" style="font-size:10px;height:25px;"></select>
		<input type=button value="关闭" class="btn" onclick="$('#cam1').hide()">
		</p>

		<script language="JavaScript">
//webcam.set_hook( 'onComplete', 'my_completion_handler1' );
//webcam.set_hook( 'onLoad', 'onWebcamReady' );

		function take_snapshot(id) {
			// take snapshot and upload to server
			//var jia = 
			$("#"+id+"_jia").show();
			webcam.snap();
		}

function changeCamera() {
	webcam.changeCamera($('#cameraNames').val());
}

function my_completion_handler1(msg) {
	// extract URL out of PHP output
	$("#touxiang_jia").hide();
	document.getElementById('touxiang').innerHTML = '<img class="viewer-toggle" data-original="./Uploads/Picture/{$info.xydm}/' + msg + '" height="170" src="./Uploads/Picture/{$info.xydm}/' + msg + '">';
	$("#txxx").val(msg);
	$("#touxiang_btn").val("重照");
	$("#touxiang_btn").attr("onclick","$('#cam1').show();$('#cam1').css('top','130px');shuchu(240,320,905,1280,'touxiang');delpic('"+msg+"','touxiang','txxx')");
	//$("#paizhao").attr("disabled","true");
	//viewer_init();
	//$("body").append('<script src="__PUBLIC__/Admin/viewer/viewer.js"><\/script><script src="__PUBLIC__/Admin/viewer/main.js"><\/script>');
	var $images = $('.docs-pictures');
	$images.viewer("destroy");
	$images.viewer("build");

	webcam.reset();
}
//初始化横向图片的数组
var arr=[1,2,3,4,5,6,7,8,9]; 
var arr1=[1,2,3,4,5,6,7,8,9]; 
var arr2=[1,2,3,4,5,6,7,8,9]; 
var arr3=[1,2,3,4,5,6,7,8,9]; 
var arr4=[1,2,3,4,5,6,7,8,9]; 
var arr5=[1,2,3,4,5,6,7,8,9]; 
var arr6=[1,2,3,4,5,6,7,8,9]; 
var arr7=[1,2,3,4,5,6,7,8,9]; 
var arr8=[1,2,3,4,5,6,7,8,9]; 
var arr9=[1,2,3,4,5,6,7,8,9]; 
function my_completion_handler2(msg) {
	// extract URL out of PHP output
	var id=$("#iteam_id").val();
	switch(id){
		case "fujian":
			var num = arr.shift();
			break;
		case "fujian1":
			var num = arr1.shift();
			break;
		case "fujian2":
			var num = arr2.shift();
			break;
		case "fujian3":
			var num = arr3.shift();
			break;
		case "fujian4":
			var num = arr4.shift();
			break;
		case "fujian5":
			var num = arr5.shift();
			break;
		case "fujian6":
			var num = arr6.shift();
			break;
		case "fujian7":           
			var num = arr7.shift();
			break;
		case "fujian8":
			var num = arr8.shift();
			break;
		case "fujian9":
			var num = arr9.shift();
			break;
		default:

	}
	if( num != undefined){
		document.getElementById(id).innerHTML +=  '<div class=" docs-pictures clearfix" id="'+id+'_div'+num+'" style="position:relative;margin-left:10px;"><div onclick="delpic(\''+msg+'\',\''+id+'\',\''+id+num+'\')" style="position:absolute;top:20px;right:5px;cursor:pointer;color:#fff;background-color:#42ab33;width:15px;height:15px;line-height:15px;text-align:center;border-radius:8px;">x</div><p><img class="viewer-toggle" data-original-url="./Uploads/Picture/{$info.xydm}/' + msg + '" width="77" height="110"src="./Uploads/Picture/{$info.xydm}/' + msg + '"></p></div>';
	}	
	/*if($("#cjxx1").val() == ""){
	  $("#cjxx1").val(msg);
	  document.getElementById('fujian').innerHTML += '<div class=" docs-pictures clearfix" id="cjxx_div1" style="position:relative"><div onclick="delpic(\''+msg+'\',\'fujian\',\'cjxx1\')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img class="viewer-toggle" data-original-url="./Uploads/Picture/{$info.xydm}/' + msg + '" width="170" src="./Uploads/Picture/{$info.xydm}/' + msg + '"></p></div>';
	  }else if($("#cjxx2").val() == ""){
	  $("#cjxx2").val(msg);
	  document.getElementById('fujian').innerHTML += '<div class=" docs-pictures clearfix" id="cjxx_div2" style="position:relative"><div onclick="delpic(\''+msg+'\',\'fujian\',\'cjxx2\')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img class="viewer-toggle" data-original-url="./Uploads/Picture/{$info.xydm}/' + msg + '" width="170" src="./Uploads/Picture/{$info.xydm}/' + msg + '"></p></div>';
	  }else{
	  $("#cjxx3").val(msg);
	  document.getElementById('fujian').innerHTML += '<div class=" docs-pictures clearfix" id="cjxx_div3" style="position:relative"><div onclick="delpic(\''+msg+'\',\'fujian\',\'cjxx3\')" style="position:absolute;top:2px;right:25px;cursor:pointer;color:red;">X</div><p><img class="viewer-toggle" data-original-url="./Uploads/Picture/{$info.xydm}/' + msg + '" width="170" src="./Uploads/Picture/{$info.xydm}/' + msg + '"></p></div>';
	  }*/
	$("#"+id+"_jia").hide();
	if($("#cjxx1").val() != "" && $("#cjxx2").val() != "" && $("#cjxx3").val() != ""){
		//	$("#paizhao").attr("disabled","true");
	}
	//viewer_init();
	//$("body").append('<script src="__PUBLIC__/Admin/viewer/viewer.js"><\/script><script src="__PUBLIC__/Admin/viewer/main.js"><\/script>');
	var $images = $('.docs-pictures');
	$images.viewer("destroy");
	$images.viewer("build");
	webcam.reset();
}
function delpic(pic,id,id2){
	var con = confirm("确定删除图片吗？");
	if(con){
		switch(id)
		{
			case "fujian":
				$("#"+id2).val("");
				var index = id2.substring(6,id2.length);
				$("#fujian_div"+index).remove();
				break;
			case "fujian1":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian1_div"+index).remove();
				break;
			case "fujian2":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian2_div"+index).remove();
				break;
                        case "fujian3":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian3_div"+index).remove();
				break;
                        case "fujian4":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian4_div"+index).remove();
				break;
                        case "fujian5":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian5_div"+index).remove();
				break;
                        case "fujian6":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian6_div"+index).remove();
				break;
                        case "fujian7":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian7_div"+index).remove();
				break;
                        case "fujian8":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian8_div"+index).remove();
				break;
                        case "fujian9":
				$("#"+id2).val("");
				var index = id2.substring(7,id2.length);
				$("#fujian9_div"+index).remove();
				break;

			default:
				$("#touxiang").html("");
				$("#txxx").val("");
		}
		/*if(id == "fujian"){
		  $("#"+id2).val("");
		  var index = id2.substring(4,id2.length);
		  $("#cjxx_div"+index).remove();
		  }else{
		  $("#touxiang").html("");
		  $("#txxx").val("");
		  }*/
		$("#paizhao").removeAttr("disabled");
		var na = "{$info.xydm}";
		$.get("{:U('delpic')}",{"pic":pic,"xydm":na});

	}
}
function onWebcamReady1(msg) {
	webcam.changeCamera(0);
	$('#cameraNames').html("");
	msg[0] = 0;
	$.each(msg[1], function(index, text) {
			if(msg[0] == index){
			$('#cameraNames').append( $('<option selected></option>').val(index).html("摄像头"+(index+1)) )
			}else{
			$('#cameraNames').append( $('<option></option>').val(index).html("摄像头"+(index+1)) )
			}
			}); 
	//$('#cameraNames').val(camera);
}
function onWebcamReady2(msg) {
	webcam.changeCamera(1);
	$('#cameraNames').html("");
	msg[0] = 1;
	$.each(msg[1], function(index, text) {
			if(msg[0] == index){
			$('#cameraNames').append( $('<option selected></option>').val(index).html("摄像头"+(index+1)) )
			}else{
			$('#cameraNames').append( $('<option></option>').val(index).html("摄像头"+(index+1)) )
			}
			}); 
	//$('#cameraNames').val(camera);
}

function productdata(data){



}
		</script>
	</div>
	<iframe name="edit_iframe" src="" frameborder="0" width="0" height="0"></iframe>

	<div class="tijiao">
		<input type="button"  value="提交" onclick="$('#xgform').submit();"/>

		<!-- /纳税人信息详细数据 -->
	</div>	
</div>
</div>


<include file="Public/footer"/>

</body>
